package com.yantong.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;

/**
 * @author kanghaixin
 * @date 2018/8/27.12:25
 */
public interface OssService {

    /**
     * 上传图片
     * @param file
     * @param folder
     * @return
     */
    String uploadImg(MultipartFile file, String folder);

    /**
     * 上传图片
     * @param inputStream
     * @param folder
     * @return
     */
    String uploadImg(InputStream inputStream, String folder);


}
